import React, { PureComponent, Fragment } from 'react';
import styles from './index.less';
import {
  Drawer,
  Switch,
  Tooltip
} from 'antd';
import debounce from 'lodash/debounce';
import { routerRedux } from 'dva/router';
import { connect } from 'dva';
import Detail from './../Meters/Detail'
import working from './../../images/working.png'
@connect(({ devices, loading }) => ({
  devices
}))
class BasicList extends PureComponent {
  constructor(props) {
    super(props);
    this.scrollInterval = '';

    this.state = {
    };
  }


  componentDidMount() {

  }

  componentWillUnmount() {
    if (this.scrollInterval) {
    }
  }


  render() {
    const { dispatch } = this.props;
    return <div className={'homePage'}  style={{display:'flex',fontSize:'29px', height:'100%', flexDirection: 'column',  justifyContent: "center",alignItems: "center"}}>
      <img src={working} alt="" style={{width:'500px'}}/>
      <h1>欢迎使用泉州市一丰机电设备有限公司</h1>
      <h2>消防栓智慧管理平台</h2>
      <h2 onClick={()=>{
        window.location.href='/user/login'
      }} style={{color:'blue',cursor:'pointer'}}>点击登录</h2>
    </div>;
  }
}

export default BasicList;
